package com.tan.common.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import com.tan.common.domain.BaseModel;
import lombok.*;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author Tan
 * @since 2025-02-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("sys_group")
public class SysGroup extends BaseModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 组名
     */
    private String name;

    /**
     * 父节点id
     */
    private Long parentId;

    /**
     * 显示顺序
     */
    private Integer sort;

    /**
     * 状态(1:正常;0:禁用)
     */
    private Boolean status;

    /**
     * 逻辑删除标识(1:已删除;0:未删除)
     */
    private Boolean delFlag;
}
